//
// Created by Administrator on 2016/12/11 0011.
//

#ifndef SERCHING_MYHASHTABLE_H
#define SERCHING_MYHASHTABLE_H
#include<iostream>
#include"hashtable.h"
template <class T>
class MyHashTable: public HashTable<T>
{
public:
    MyHashTable(int divisor)
            :HashTable<T>(divisor){}
    int h1(int x){ return(x%this->M);}
    int h2(int x){ return(x%(this->M-2)+1);}
};


#endif //SERCHING_MYHASHTABLE_H
